package day2.Exer;

import java.util.Scanner;

public class Cartest {
    public static void main(String[] args) {
        Car b=new Car();
        b.tyre="275/45/R20";
        b.underpan="承载式";
        b.carframe="多连杆独立悬架";
        b.color="黑";
        b.a.brand="B58B30C";
        b.a.disp=2998.0;
        b.a.weight=200;
        b.a.horsepow=333;
        b.carshow();
        System.out.println("是否启动Y/N？");
        Scanner in=new Scanner(System.in);
        String chosen=in.next();
        if(chosen.equals("y")){
            b.a.start();
        }
    }
}
